home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 034a / gapcdr.zip / GAPCDR.H < prev    next >
C/C++ Source or Header  |  1992-01-12  |  7KB  |  139 lines

  1. /*
  2.    Copyright (C) 1988-1992 The GAP Development Company
  3.  
  4.    All Rights Reserved
  5.    
  6.    This source code is considered to be confidential information proprietary
  7.    to The GAP Development Company.  It is prohibited and punishable by law
  8.    to use or duplicate any part of this information.
  9.  
  10.  
  11.    GAPCDR.H
  12.  
  13.    Header file for GAPCDR modules
  14.  
  15.    Defines external declarations and includes gastruc.h which defines
  16.    global structures and function prototypes.
  17.  
  18. */
  19.  
  20. #include "gapstruc.h"
  21.  
  22.    /*********************************************************************/
  23.    /*  Variables initialized by reading DOOR.SYS                        */
  24.    /*********************************************************************/
  25.  
  26.    extern short multi;                    // 1 = system is multi-user
  27.    extern short local;                    // 0 = remote user, 1 = local user  
  28.    extern short port;                     // com port being used              
  29.    extern short parity;                   // actually data bits, not used     
  30.    extern short node;                     // node number in use, 0 = single   
  31.    extern short screen;                   // 0 = screen off, 1 = screen on    
  32.    extern short printer;                  // 0 = printer off, 1 = printer on  
  33.    extern short bell;                     // 0 = page bell off, 1 = bell on   
  34.    extern short alarm;                    // 0 = caller alarm off, 1 = on     
  35.    extern short level;                    // user's security level            
  36.    extern short minsleft;                 // minutes left at door start       
  37.    extern short color;                    // 0 = no color, 1 = color          
  38.    extern short page;                     // page length                      
  39.    extern short expert;                   // 0 = novice, 1 = expert           
  40.    extern short realcredit;               // real time credits
  41.    extern short dflt_color;               // BBS default color
  42.    extern short maxfiles;                 // Max files available
  43.    extern short curfiles;                 // Current files downloaded
  44.  
  45.    extern unsigned short userbaud;        // remote user's bps rate           
  46.    extern unsigned short baud;            // DTE bps rate                     
  47.  
  48.    extern long timeson;                   // # of times on                    
  49.    extern long recnum;                    // user's record number             
  50.    extern long uploads;                   // total number of uploads          
  51.    extern long downloads;                 // total number of downloads        
  52.    extern long curbytes;                  // current download bytes             
  53.    extern long maxbytes;                  // max bytes can download           
  54.    extern long doors_open;                // Total doors opened
  55.    extern long mesleft;                   // Total messages left
  56.    extern long upbytes;                   // total upload bytes               
  57.    extern long downbytes;                 // total download bytes             
  58.  
  59.    extern char username   [];             // user's full name                 
  60.    extern char fname      [];             // user's first name                
  61.    extern char lname      [];             // user's last name                 
  62.    extern char city       [];             // user's home town                 
  63.    extern char hphone     [];             // user's home phone number         
  64.    extern char bphone     [];             // user's business phone number     
  65.    extern char password   [];             // user's password                  
  66.    extern char lastdate   [];             // last date user was on            
  67.    extern char subscrip   [];             // date user's subscription expires 
  68.    extern char handle     [];             // caller's Handle
  69.    extern char event_time [];             // event run time
  70.    extern char last_new   [];             // last new files scan
  71.  
  72.  
  73.    /********************************************************************/
  74.    /*  global variables                                                */
  75.    /********************************************************************/
  76.  
  77.    extern char noup;                      // if 1, dont uppercase characters     
  78.    extern char redisplay;                 // true if wants to start over         
  79.    extern char usemore1;                  // true if showing a file              
  80.    extern char view;                      // true if want a more prompt          
  81.    extern char endview;                   // true if dont want to see any more   
  82.    extern char NS;                        // true if in Non Stop mode            
  83.    extern char instatus;                  // if doing status line,bypas our BIOS 
  84.    extern char chat;                      // true if chatting with user          
  85.    extern char wordwrap;                  // column to wrap at                   
  86.    extern char column;                    // column we are at now                
  87.    extern char flag;                      // flag that a space was pressed       
  88.    extern char clockon;                   // 0 no clock, 1 display clock
  89.  
  90.    extern short timeleft;                 // time user has left                  
  91.    extern short lines;                    // # of lines currently displayed
  92.    extern short irq;                      // IRQ for port
  93.    extern short base_add;                 // base address for port
  94.    extern short timecredit;               // any time credits user may have
  95.    extern short _near normal;             // current display color
  96.    extern short _near crscur;             // current cursor pos
  97.  
  98.    extern char anystring   [];            // global garbage collector            
  99.    extern char maindir     [];            // path to the BBS main dir            
  100.    extern char gendir      [];            // path to the BBS gen dir             
  101.    extern char sysname     [];            // sysop's name                        
  102.    extern char strtime     [];            // holds the time string               
  103.    extern char curtime     [];            // holds the current time as a string  
  104.    extern char bbs_dir     [];            // path to BBS default dir             
  105.    extern char board_name  [];            // name of the BBS                     
  106.    extern char birthday    [];            // caller's birth date
  107.  
  108.    extern long temptime;                  // for calculating time out            
  109.    extern long timenow;                   // long integer for current time       
  110.    extern long starttime;                 // long integer for time door opened   
  111.  
  112.    // structures
  113.  
  114.    extern struct GAP_USER user;
  115.    extern struct PCBSYS14 pcbsys;
  116.    extern struct PCBUSER14 pcbuser;
  117.  
  118.  
  119.    extern char  BS [];
  120.    extern char  CRLF [];
  121.  
  122.    extern char  A_BLACK [];               // ANSI color strings                  
  123.    extern char  A_RED [];
  124.    extern char  A_GREEN [];
  125.    extern char  A_BROWN []; 
  126.    extern char  A_BLUE [];
  127.    extern char  A_MAGENTA []; 
  128.    extern char  A_CYAN [];
  129.    extern char  A_WHITE [];
  130.    extern char  A_BBLACK [];
  131.    extern char  A_BRED [];
  132.    extern char  A_BGREEN [];
  133.    extern char  A_YELLOW [];
  134.    extern char  A_BBLUE [];
  135.    extern char  A_BMAGENTA [];
  136.    extern char  A_BCYAN [];
  137.    extern char  A_BWHITE [];
  138.  
  139.